﻿using JetBrains.Annotations;
using Dyn.News.Models;
using Orchard.ContentManagement.Drivers;
using Orchard.Environment.Extensions;

namespace Dyn.News.Drivers {
    [UsedImplicitly]
    [OrchardFeature("Dyn.News.RemotePublishing")]
    public class RemoteCategoryPublishingDriver : ContentPartDriver<NewsCategoryPart> {
        protected override DriverResult Display(NewsCategoryPart part, string displayType, dynamic shapeHelper) {
            return ContentShape("Parts_Category_RemotePublishing", shape => shape.Category(part));
        }
    }
}